<?php



use Doctrine\ORM\Mapping as ORM;

/**
 * Composant
 *
 * @ORM\Table(name="composant")
 * @ORM\Entity
 */
class Composant
{
    /**
     * @var string $cmpcode
     *
     * @ORM\Column(name="cmpCode", type="string", length=4, nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $cmpcode;

    /**
     * @var string $cmplibelle
     *
     * @ORM\Column(name="cmpLibelle", type="string", length=25, nullable=true)
     */
    private $cmplibelle;


    /**
     * Get cmpcode
     *
     * @return string 
     */
    public function getCmpcode()
    {
        return $this->cmpcode;
    }

    /**
     * Set cmplibelle
     *
     * @param string $cmplibelle
     * @return Composant
     */
    public function setCmplibelle($cmplibelle)
    {
        $this->cmplibelle = $cmplibelle;
        return $this;
    }

    /**
     * Get cmplibelle
     *
     * @return string 
     */
    public function getCmplibelle()
    {
        return $this->cmplibelle;
    }
}